﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class UINodeCameraComponent : MonoBehaviour
{
    [SerializeField]
    GameObject nodeFieldOfView;

    [SerializeField]
    UIToggle checkboxOrthographic;

    [SerializeField]
    UIToggle checkboxGrid;
    void Start () {
        checkboxGrid.value = UserData.Thas.IsGrid;
    }

    public void SetOrthographic()
    {
        nodeFieldOfView.SetActive(!checkboxOrthographic.value);
    }

    public void SetGrid()
    {
        UserData.Thas.IsGrid = checkboxGrid.value ;
        VoxelEditorMastermind.instance.SetGrid(checkboxGrid.value);
    }
}
